package main

import "github.com/kataras/iris/v12"

type User struct{
	Uid int `json:"uid"`
	Name string `json:"name"`
}

func main(){
	app := iris.New()

	app.Get("/user",func(ctx iris.Context){
		users := []User{
			{Uid:0,Name:"admin"},
		}
		ctx.JSON(users)
	})

	app.Listen(":8081")
}